//
//  APPAgreementVC.m
//  NewPro
//
//  Created by 何荧红 on 2018/10/20.
//  Copyright © 2018 何荧红. All rights reserved.
//

#import "APPAgreementVC.h"

@interface APPAgreementVC ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *scrollerToHeight;
@property (weak, nonatomic) IBOutlet UIScrollView *ScrollerView;
@property (weak, nonatomic) IBOutlet UILabel *lastLab;

@end

@implementation APPAgreementVC
- (void)viewWillAppear:(BOOL)animated{
    
    [super viewWillAppear:YES];
    self.navigationController.navigationBar.hidden = YES;
}
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:YES];
    self.navigationController.navigationBar.hidden = NO;
}
- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    self.ScrollerView.contentSize = CGSizeMake(SCREEN_WIDTH, CGRectGetMaxY(_lastLab.frame) + 20);
    self.ScrollerView.bounces = NO;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self initCSS];
}
- (void)initCSS{
    self.view.backgroundColor = [UIColor colorWithHexString:@"f4f4f4"];
    ViewHeader *header = [[ViewHeader alloc]initWithDefaultString:@"用户协议"];
    [self.view addSubview:header];
}


@end
